package com.sxt.practiceapplication.utils.deprecated;

import android.media.ImageReader;
import android.os.Build;

import androidx.annotation.RequiresApi;


@RequiresApi(api = Build.VERSION_CODES.KITKAT)
public class OnImageAvailableListener implements ImageReader.OnImageAvailableListener {

    private int orientation = 0;

    @Override
    public void onImageAvailable(ImageReader reader) {

    }

    public void setOrientation(int orientation) {
        this.orientation = orientation;
    }

    public int getOrientation() {
        return orientation;
    }
}
